/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.documentar.controller;

import br.com.documentar.interfacee.InterfaceController;
import br.com.documentar.model.TratadorExcessaoModel;
import br.com.documentar.util.TratadorExcessaoView;
import javax.swing.DefaultComboBoxModel;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Santos
 */
public class TratadorExecessaoController implements InterfaceController<TratadorExcessaoModel> {

    @Override
    public TratadorExcessaoModel getModel() {
        return new br.com.documentar.model.TratadorExcessaoModel();
    }

    @Override
    public DefaultTableModel insertTableModel(TratadorExcessaoModel model) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public DefaultTableModel getDadosTableModel(TratadorExcessaoModel model) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public boolean setDados(TratadorExcessaoModel model) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public DefaultComboBoxModel getDadosComboBoxModel(TratadorExcessaoModel model) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public DefaultComboBoxModel insertComboBoxModel(TratadorExcessaoModel model) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public void setErro(String processo, String sql, String detalhes) {
        TratadorExcessaoView view = new TratadorExcessaoView();
        view.setDetalhes("Processo: " + processo + "\n\nComando SQL: " + sql + "\n\nExcessão: " + detalhes);
        view.setVisible(true);
    }

}
